package com.sudo.sso.server.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.sudo.sso.server.dto.SysRole$LoginDto;
import com.sudo.sso.server.entity.SysRole;
import com.sudo.sso.server.mapper.SysRoleMapper;
import com.sudo.sso.server.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统角色  服务层实现。
 *
 * @author admins
 * @since 2023-10-13
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Override
    public List<SysRole$LoginDto> selectRoleListByUsername(String username) {
        return mapper.selectRoleListByUsername(username);
    }
}
